package com.shenmazong.customer.controller;

import com.shenmazong.customer.service.IAskService;
import com.shenmazong.utils.ResultResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: 在线客服接口
 * @date 2022/4/11 10:57
 */

@RestController
@Slf4j
@CrossOrigin
@RequestMapping(value = "/customer")
public class CustomerController {

    @Autowired
    IAskService iAskService;

    /**
     * @description 获取在线咨询客户的列表
     * @author 军哥
     * @date 2022/4/11 11:00
     * @version 1.0
     */
    @PostMapping(value = "/getAskUserList")
    public ResultResponse getAskUserList() {
        return iAskService.getAskUserList();
    }

    /**
     * @description 获取在线客服的列表
     * @author 军哥
     * @date 2022/4/11 11:04
     * @version 1.0
     */
    @PostMapping(value = "/getReplyUserList")
    public ResultResponse getReplyUserList() {
        return iAskService.getReplyUserList();

    }
}
